// 菜单
export declare namespace IMenu {
  export interface MenuForm {
    id: number
    pid: number
    path: string
    name: string
    component?: string | (() => Promise<unknown>)
    redirect?: string
    meta: MenuMeta
    children?: MenuForm[]
    apiList?: []
  }
  export interface MenuMeta {
    type: string
    icon: string
    title: string
    isHidden?: boolean
    isKeepAlive?: boolean
    sort?: number
    tag?: string
  }

  // 简单化菜单
  interface SimpleMenu {
    id: number
    pid: number
    title: string
    children?: SimpleMenu[] | null
  }
}
